//
//  InputTextFieldView.m
//  SXHomeTownClub
//
//  Created by 周思扬 on 2018/5/30.
//  Copyright © 2018年 jsx. All rights reserved.
//

#import "InputTextFieldView.h"

@implementation InputTextFieldView

-(void)awakeFromNib
{
    [super awakeFromNib];
    self.inputbg1.layer.borderColor=SDColor(69, 69, 69).CGColor;
    self.inputbg1.layer.borderWidth=1;
    self.inputbg2.layer.borderColor=SDColor(69, 69, 69).CGColor;
    self.inputbg2.layer.borderWidth=1;
    self.loginbtn.layer.cornerRadius=5;
}

-(void)setStatus:(int)status
{
    [UIView animateWithDuration:1.0 animations:^{
        if(status==1)
        {
            self.inputbg2.hidden=YES;
            self.inputbg2height.constant=0.0;
        }else if(status==2)
        {
            self.inputbg2.hidden=NO;
            self.inputbg2height.constant=50.0;
        }
    } completion:^(BOOL finished) {
        
    }];
    
}

@end
